// 循环生成代码
.createLoop(@n, @i: 1) when (@i =< @n) {
  @num: (@i * 2);
  .all-m-t-@{num} {
    margin-top: 1px * @num;
  }

  .all-m-l-@{num} {
    margin-left: 1px * @num;
  }

  .all-m-r-@{num} {
    margin-right: 1px * @num;
  }

  .all-m-b-@{num} {
    margin-bottom: 1px * @num;
  }

  .all-m-@{num} {
    margin: 1px * @num;
  }

  .all-p-@{num} {
    box-sizing: border-box;
    padding: 1px * @num;
  }

  .all-p-t-@{num} {
    box-sizing: border-box;
    padding-top: 1px * @num;
  }

  .all-p-l-@{num} {
    box-sizing: border-box;
    padding-left: 1px * @num;
  }

  .all-p-r-@{num} {
    box-sizing: border-box;
    padding-right: 1px * @num;
  }

  .all-p-b-@{num} {
    box-sizing: border-box;
    padding-bottom: 1px * @num;
  }

  .all-font-(@i) {
    font-size: 1px * @i;
  }

  .all-l-h-(@i) {
    line-height: 1px * @i;
  }
  .createLoop(@n, (@i + 1));
}
.createLoop(50);
